

package com.cmcc.pcap.packet.sctp.nas.impl.ies;



import com.cmcc.pcap.packet.sctp.nas.utils.OctetOutputStream;

import java.nio.charset.StandardCharsets;

public class IENsiMobileIdentity extends IESuciMobileIdentity {
    public String suciNai;

    public IENsiMobileIdentity() {
    }

    public IENsiMobileIdentity(String suciNai) {
        this.suciNai = suciNai;
    }

    @Override
    public void encodeIE6(OctetOutputStream stream) {
        stream.writeOctet(0b00010001); // Flags for SUCI with SUPI format NSI
        stream.writeOctets(suciNai.getBytes(StandardCharsets.UTF_8));
    }
}
